<?
	include('conn.php');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>


   
     <form name="frm2" action="maincore.php" method="post">
     
   
    <table border="0" width="500">
    <tr>
    </tr>
    <tr>
    	<td>
        
			<table width="100%" border="1" cellspacing="0" cellpadding="0">
              <tr>

              	<td bgcolor="#CCCCCC" width="6%" align="left">
                </td>
                <td bgcolor="#CCCCCC"  align="left"><b></b></td>
                <td bgcolor="#CCCCCC"  align="left"><b></b></td>

              </tr>
           <?
		   

$sql=mysql_query("SELECT iUpload,iProject,iSession,iUser,iTypeUpload,tFileNameEncrypt,iFileType,tFileName,tFileUrl,iState FROM TUpload WHERE iState= 1 ",$conn);
$numOfRec=mysql_num_rows($sql);
$ctr=0;
var_dump($sql);
while($field=mysql_fetch_array($sql)) {
?> 

<tr>

<td align="left">&nbsp;<? echo("$field[iUpload]"); ?></td>
<td align="left">&nbsp;<? echo("$field[iSession]"); ?></td>
<td align="left">&nbsp;<? echo("$field[tFileNameEncrypt]"); ?></td>
<td align="left">&nbsp;<? echo("$field[tFileUrl]"); ?></td>
<td align="left">&nbsp;<? echo("$field[iState]"); ?></td>


</tr>

<? $ctr++; } ?>
            
            </table>
     
            
            
      	</td>
      </tr>
      		
            <tr>
            	<td align="left">
                	Select: <input type="button" name="cmdcheck" value="A" onclick='chkall()' /><input type="button" name="cmdnone" value="N" onclick='Unchkall()' />
              		
                    
                    &nbsp;&nbsp;
                	  <input type="button" name="cmddelete" value="Delete" onclick="remove()" />
                      <input type="button" name="cmdedit" value="Edit" onclick="validEdit()" />
                     
                </td>
            </tr>
      
		</table>
 
</form>
           
            
<body>
</body>
</html>
